package com.lsk.apipassenger.remote;

import com.lsk.internalcommon.DTO.PassengerUser;
import com.lsk.internalcommon.DTO.ResponseResult;
import com.lsk.internalcommon.request.VerificationCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {

    @RequestMapping(method = RequestMethod.POST,value = "/user")
    ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCode );

    @RequestMapping(method = RequestMethod.GET,value = "/user/{passengerPhone}")
    ResponseResult<PassengerUser> getUserByPhone(@PathVariable String passengerPhone);
}
